﻿/** @const */
var pathhead = location.pathname.charAt(1),
	domainhead = top.location.hostname.split('.')[0];

/** @const */
var du_blackdomain = [ '//drmcmm','//eiv','//fetch','//hm','//sclick','//sfile' ],
	tie_blackJS = [ 'tb_ce.js', /\Wloader\.js/, 'frs_ad', 'gamezone' ];

// Baidu.AdBlock
$.blockBySrc( du_blackdomain );

// Tieba.AdBlock
if ( domainhead === 'tieba' ) {
	$.blockBySrc( tie_blackJS );
} else {
	/** @const */
	var msg = {
			'hostname' : location.hostname
	};
	chrome.extension.sendRequest( msg );
}
